package Threading;

public class Lambda {
    public static void main(String[] args) {
        Thread t = new Thread(()->{
           while (true){
               System.out.println("hello Lambda");
               try {
                   Thread.sleep(1000);
               } catch (InterruptedException e) {
                   e.getStackTrace();
               }
           }
        });
        t.start();
    }
}
